package com.jzo2o.orders.dispatch.strategys;

/**
 * 最少接单数优先策略: 先最少接单优先，接单相同, 再找距离近的
 */
public class LeastAcceptOrderStrategyImpl extends AbstractStrategyImpl {
    @Override
    protected IProcessRule getRules() {
        // 构建责任链,先接单数优先，接单数相同再判断距离
        return new AcceptNumRule(new DistanceRule(null));
    }
}